package cordova.umeng.push;

import android.widget.Toast;

public class UmengPush extends CordovaPlugin {
    @Override
    public void initialize(CordovaInterface cordova, CordovaWebView webView) {
        super.initialize(cordova, webView);
        Log.d("ewqewq");
        Toast.makeText(UmengPush.this, "123123", Toast.LENGTH_SHORT).show();
    }

    public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
        if (action.equals("addTag")) {
            return addTag(args, callbackContext);
        } else if (action.equals("removeTag")) {
            return removeTag(args, callbackContext);
        } else if (action.equals("getTags")) {
            return getTags(callbackContext);
        } else if (action.equals("removeAllTags")) {
            return removeAllTags(callbackContext);
        } else if (action.equals("addAlias")) {
            return addAlias(args, callbackContext);
        } else if (action.equals("setAlias")) {
            return setAlias(args, callbackContext);
        } else if (action.equals("removeAlias")) {
            return removeAlias(args, callbackContext);
        }
        return false;
    }
}